<?php

namespace App\Models;

use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class GridHouse extends Model
{
    use SoftDeletes;

    protected $table = 'grid_house';

    protected $fillable = [
        'grid_id',
        'type',
        'house_type_id',
        'is_decorate',
        'villager_ids',
        'do_user_id',
    ];

    public function house_type()
    {
        return $this->hasOne(HouseType::class, 'id', 'house_type_id');
    }

}
